package com.earnings.okhttputils.utils.ui.fragment.transaction;

import android.text.Html;
import android.view.View;
import android.widget.TextView;

import com.earnings.R;
import com.earnings.okhttputils.utils.ui.BaseFragment;
import com.earnings.okhttputils.utils.utils.TimestampTransform;

import java.util.Date;

/**
 * 线下充值-步骤3
 * Created by HOHO on 2017/4/11.
 */

public class RechargeOfflineStepThirdFragment extends BaseFragment {



    @Override
    protected void init() {
        mView.findViewById(R.id.sumbit).setOnClickListener(this);
       String info="财务确认后，会在2个工作日内给您进行充值操作，如遇节假日则顺延。如有疑问，请拨打客服电话<a>400-888-666</a>";
        ((TextView) mView.findViewById( R.id.info )).setText( Html.fromHtml( info ) );

    }
    public void initData(String order){
        ((TextView) mView.findViewById( R.id.money )).setText("¥"+((RechargeOfflineFragment) getActivity().getSupportFragmentManager().getFragments().get( 1 )).money );
        TimestampTransform.TimeStamp2Date( new Date().getTime()+"" );
        // DateUtils.formatDateRange(  )
    }

    @Override
    protected int onCreateLayout() {
        return R.layout.fragment_recharge_offline_step3;
    }


    @Override
    public void onClick(View v) {

        int i = v.getId();
        if (i == R.id.sumbit) {
            getActivity().finish();
        }
    }





}
